app.service("loginService",function ($http) {

    //显示登陆者名字
    this.showLoginerName=function () {
        return $http.get("../sellerLoginController/showLoginerName.do");
    }
    //修改密码
    this.updatePassword=function (entity) {
        return $http.post("../sellerLoginController/updatePassword.do",entity);
    }
    //发送验证码
    this.sendCode=function (email) {
        return $http.get("../sellerLoginController/sendCode.do?email="+email);
    }
    //忘记密码
    this.forgetPassword=function (entity) {
        return $http.post("../sellerLoginController/forgetPassword.do",entity);
    }


});